﻿@model mscook.mvc.Models.ChangePasswordModel

@using mscook.mvc;
@{
    ViewBag.Title = "览月齐鲁";
    Layout = "~/Views/Shared/_CenterLayout.cshtml";
}
@section JavaScript
{
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.unobtrusive.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.unobtrusive-ajax.js")"></script>
}
<div class="span9 main">
    <div class="row">
        <div class="span8 business_card highlight">
            <div class="card_header">
                <span class="card_title">
                    <i class="icon-lock"></i>
                    <a target="_blank" href="#">修改密码 <i class="chevron-right">›</i></a>
                </span>
            </div>
            <div class="card_info">

                <form class="form-horizontal" method="post" action="@Url.Action("ChangePassword")">
                    @Html.AntiForgeryToken()

                    <div class="control-group">
                        <label class="control-label">
                        </label>
                        <div class="controls">
                            @Html.ValidationSummary()
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">原始密码</label>
                        <div class="controls">
                            @Html.PasswordFor(o => o.OldPaasword, new { placeholder = "原始密码" })

                            <span class="help-inline">@Html.ValidationMessageFor(o => o.OldPaasword)</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">新密码</label>
                        <div class="controls">
                            @Html.PasswordFor(o => o.NewPassword, new { placeholder = "新密码" })
                            <span class="help-inline">@Html.ValidationMessageFor(o => o.NewPassword) </span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">重复密码</label>
                        <div class="controls">
                            @Html.PasswordFor(o => o.ConfirmPassword, new { placeholder = "重复密码" })
                            <span class="help-inline">@Html.ValidationMessageFor(o => o.ConfirmPassword)</span>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </form>
            </div>
        </div>

    </div>
</div>
